//
//  BaseModel.m
//  BaseProject
//
//  Created by jiyingxin on 15/10/21.
//  Copyright © 2015年 Tarena. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel
//归档
MJCodingImplementation

- (id)copyWithZone:(NSZone *)zone
{
    BaseModel * model = [[BaseModel alloc]init];
  
    [model mj_setKeyValues:self ];
    return model;
}


- (NSString *)description
{
    
   NSArray * propertyName = [BaseModel mj_allowedPropertyNames];
    NSMutableString * description = [[NSMutableString alloc]init];
    for (NSString *name in propertyName) {
        [description appendString:[NSString stringWithFormat:@"%@::%@",name,[self valueForKey:name]]];
    }
    return description;
}

@end
